<?php

class RestController extends CController {
	
	public function actionIndex($dataType, $method) {
		Yii::import('application.rest.RestRequest');
		$request = new RestRequest();
		$request->attributes = array(
			'dataType' => $dataType,
			'method' => $method,
			'params' => @$_POST,
		);

		die($request->response());
	}

}

?>